package com.luo.partner.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class TabUsrs implements Serializable {
    private Long usrsId;

    /**
     * 手机号
     *
     * @mbggenerated
     */
    private String tel;

    /**
     * 昵称
     *
     * @mbggenerated
     */
    private String nickname;

    private String account;

    private String password;

    /**
     * 总充值金额
     *
     * @mbggenerated
     */
    private BigDecimal totalRecharge;

    /**
     * 未结算的充值金额
     *
     * @mbggenerated
     */
    private BigDecimal unSettlementRecharge;

    /**
     * 已经结算的充值金额
     *
     * @mbggenerated
     */
    private BigDecimal settlementRecharge;

    /**
     * 合伙人userId
     *
     * @mbggenerated
     */
    private Long inviteUserId;

    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Long getUsrsId() {
        return usrsId;
    }

    public void setUsrsId(Long usrsId) {
        this.usrsId = usrsId;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public BigDecimal getTotalRecharge() {
        return totalRecharge;
    }

    public void setTotalRecharge(BigDecimal totalRecharge) {
        this.totalRecharge = totalRecharge;
    }

    public BigDecimal getUnSettlementRecharge() {
        return unSettlementRecharge;
    }

    public void setUnSettlementRecharge(BigDecimal unSettlementRecharge) {
        this.unSettlementRecharge = unSettlementRecharge;
    }

    public BigDecimal getSettlementRecharge() {
        return settlementRecharge;
    }

    public void setSettlementRecharge(BigDecimal settlementRecharge) {
        this.settlementRecharge = settlementRecharge;
    }

    public Long getInviteUserId() {
        return inviteUserId;
    }

    public void setInviteUserId(Long inviteUserId) {
        this.inviteUserId = inviteUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", usrsId=").append(usrsId);
        sb.append(", tel=").append(tel);
        sb.append(", nickname=").append(nickname);
        sb.append(", account=").append(account);
        sb.append(", password=").append(password);
        sb.append(", totalRecharge=").append(totalRecharge);
        sb.append(", unSettlementRecharge=").append(unSettlementRecharge);
        sb.append(", settlementRecharge=").append(settlementRecharge);
        sb.append(", inviteUserId=").append(inviteUserId);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TabUsrs other = (TabUsrs) that;
        return (this.getUsrsId() == null ? other.getUsrsId() == null : this.getUsrsId().equals(other.getUsrsId()))
            && (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
            && (this.getNickname() == null ? other.getNickname() == null : this.getNickname().equals(other.getNickname()))
            && (this.getAccount() == null ? other.getAccount() == null : this.getAccount().equals(other.getAccount()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getTotalRecharge() == null ? other.getTotalRecharge() == null : this.getTotalRecharge().equals(other.getTotalRecharge()))
            && (this.getUnSettlementRecharge() == null ? other.getUnSettlementRecharge() == null : this.getUnSettlementRecharge().equals(other.getUnSettlementRecharge()))
            && (this.getSettlementRecharge() == null ? other.getSettlementRecharge() == null : this.getSettlementRecharge().equals(other.getSettlementRecharge()))
            && (this.getInviteUserId() == null ? other.getInviteUserId() == null : this.getInviteUserId().equals(other.getInviteUserId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUsrsId() == null) ? 0 : getUsrsId().hashCode());
        result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
        result = prime * result + ((getNickname() == null) ? 0 : getNickname().hashCode());
        result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getTotalRecharge() == null) ? 0 : getTotalRecharge().hashCode());
        result = prime * result + ((getUnSettlementRecharge() == null) ? 0 : getUnSettlementRecharge().hashCode());
        result = prime * result + ((getSettlementRecharge() == null) ? 0 : getSettlementRecharge().hashCode());
        result = prime * result + ((getInviteUserId() == null) ? 0 : getInviteUserId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }
}